﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SPMS.Log.Repository;

namespace SPMS.Log.Core
{
    /// <summary>
    /// 日志记录器工厂
    /// </summary>
    /// <remarks>用于创建日志记录器</remarks>
    /// <history>
    /// [zanezeng]               2009/10/14 11:53    创建
    /// </history>
    public interface ILoggerFactory
    {
        /// <summary>
        /// 创建指定名称的日志记录器
        /// </summary>
        /// <param name="name">日志记录器的名称</param>
        /// <param name="threshold">日志输出器允许输出的日志级别</param>
        /// <param name="repository">创建出来的日志记录器所属的日志存储器</param>
        /// <returns>创建的指定名称的日志记录器</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/10/14 11:54    创建
        /// </history>
        AbstractLogger CreateLogger( string name, Level threshold, ILoggingRepository repository );
    }
}
